#ifndef INCLUDE_TEST_LIB_ACL_CPP_SCANDIR_TEST_H_
#define INCLUDE_TEST_LIB_ACL_CPP_SCANDIR_TEST_H_

#include "lib_acl.hpp"
#include "lib_acl.h"

class CScanDir {
public:
	CScanDir(const char* path, int nested);
	~CScanDir(void);
protected:
	char* m_pDirPath;
	int m_nested;
public:
	// 取得当前目录下所占磁盘空间大小(以字节计算)
	// 成功返回0，失败返回-1
	int BeginScan(void);
private:
	// 扫描的文件总数
	int m_nFile, m_nDir;
	acl_int64 m_nSize;
public:
	int FileCount(void);
	int DirCount(void);
	acl_int64 TotalSize(void);
	int BeginRemove(void);
};

void scandir_test();

#endif
